
import {createI18n} from 'vue-i18n'

import localZhCn from './languages/zh-cn'
import localEn from './languages/en'

import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import en from 'element-plus/dist/locale/en.mjs'



const i18n= createI18n({
    legacy: false,
    locale:'zh-cn',
    fallbackLocale:'zh-cn',
    messages:{
        'zh-cn': localZhCn,
        'en':localEn
    }
})


export const elementLocales = {
    'zh-cn': zhCn,
    'en':en
}



export default i18n
